# The Plobject gets passed up from listeners
# (and probably down to sharers, we'll see)
# It has a minimal set of qualities, but that will grow

class Plobject():
	def __init__(self, pluid='', type='text/text', timestamp=0, plob='', title='', id=''):
		self.pluid = pluid
		self.type = type			
		self.time = timestamp
		self.plob = plob
		self.title = title
		self.id = id
		
	def __str__(self):
		return '[Plobject:\n\tpluid %s\n\ttype %s\n\ttime %f\n\tplob len %i\n\ttitle %i\n\tid %s\n\t]' % (self.pluid, self.type, self.time, len(self.plob), len(self.title), self.id)
		
if __name__ == '__main__':
	p = Plobject()
	print(p)